import { get, post } from '@/utils/request.js'
import Config from '@/config/index.js'

export default {
  list(data) {
    return post(Config.API_VERSION + '/Admin/Others/BlackList/QueryPages', {
      clientName: data.clientName,
      type: data.type,
      history: data.history === 1,
      page: data.page
    })
  },
  detail(id) {
    return get(Config.API_VERSION + '/Admin/Others/BlackList/GetBlackListDetails', { clientID: id })
  },
  remove(id, reason) {
    return post(Config.API_VERSION + '/Admin/Others/BlackList/RemoveBlackClient', { clientID: id, reason: reason })
  }
}
